import time

a = 1000

def test01():
    start =time.time()
    global  a
    for i in range(1000):
        a += 1
    end = time.time()
    print("test01 运行时间：" + str(end-start))

def test02():
    start =time.time()
    a = 0
    for i in range(1000):
        a += 1
    end = time.time()
    print("test01 运行时间：" + str(end-start))
names = ("高淇","高老二","高老三","高老四")
ages = (18,16,20,25)
jobs = ("老师","程序员","公务员")

for name,age,job in zip(names,ages,jobs):
  print("{0}--{1}--{2}".format(name,age,job))

#不适用zip，也可以并行迭代多个序列
for i in range(min(len(names),len(ages),len(jobs))):
  print("{0}--{1}--{2}".format(names[i],ages[i],jobs[i]))


test01()
test02()
# test01 运行时间：2.6464462280273438e-05
# test01 运行时间：1.5974044799804688e-05